const HtmlWebpackInlinePlugin = require('html-webpack-inline-plugin');
// const path = require('path')

module.exports = {
  lintOnSave: false,
  publicPath: './',
  outputDir: 'lasaBigScreen',
  // baseUrl: 'flexible-pc-full-screen',
  configureWebpack: {
    plugins: [
      new HtmlWebpackInlinePlugin({
        compress: false
      })
    ]
  },
  devServer: {
    port: 8090,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },
    proxy: {
      '/apps': {
        target: `http://192.168.1.170:8090`,
        changeOrigin: true,
        pathRewrite: {
          '^/apps': '/apps'
        }
      }
    }
  },
}
